package cz.muni.fi.pa165.service;

import cz.muni.fi.pa165.dto.MushroomDTO;
import cz.muni.fi.pa165.entity.Months;
import cz.muni.fi.pa165.entity.MushroomType;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Marek Tuhársky
 */
@Local
public interface MushroomServiceLocal {
    
    public void createMushroom(MushroomDTO mushroomDTO);
    
    public MushroomDTO getMushroom(Long id);
    
    public void updateMushroom(MushroomDTO mushroomDTO);
    
    public void removeMushroom(MushroomDTO mushroomDTO);
    
    public List<MushroomDTO> findAllMushrooms();
    
    public MushroomDTO findMushroomsByName(String name);
    
    public List<MushroomDTO> findMushroomsByType(MushroomType type);
    
    public List<MushroomDTO> findMushroomsByOccurence(Months from, Months to);
}
